package com.cci.kangdao.fieldService.dao;

import com.cci.kangdao.fieldService.model.FieldServiceTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FieldServiceTemplateDao {
    int deleteByPrimaryKey(Long id);

    int insert(FieldServiceTemplate record);

    int insertSelective(FieldServiceTemplate record);

    FieldServiceTemplate selectByChannelAndNo(@Param("channel") Long channel,@Param("crmNo") String crmNo);

    List<Long> selectActiveTemplateIdList(@Param("channel") Long channel);

    FieldServiceTemplate selectByPrimaryKey(Long id);

    List<FieldServiceTemplate> getActiveTemplateList(Long channel);

    int updateByPrimaryKeySelective(FieldServiceTemplate record);

    int updateByPrimaryKey(FieldServiceTemplate record);
}